package com.cq.hd.common.entity;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class UserBase implements Serializable {

    @ApiModelProperty(value = "用户id")
    private Long id;

    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "昵称")
    private String nickName;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "手机号")
    private String mobile;

    @ApiModelProperty(value = "真实姓名")
    private String realName;

    @ApiModelProperty(value = "openid")
    private String openid;

    @ApiModelProperty(value = "微信号")
    private String wechat;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "状态(1-正常，2-已封禁)")
    private Integer state;

    @ApiModelProperty(value = "是否是经纪人(1-不是，2-是)")
    private Integer agentState;

    @JSONField(format="yyyy.MM.dd HH:mm:ss")
    @ApiModelProperty(value = "经纪人入驻时间")
    private LocalDateTime enterTime;


    @ApiModelProperty(value = "佣金账户余额")
    private BigDecimal commissionAmt;

    @ApiModelProperty(value = "邀请码")
    private String inviteCode;

    @ApiModelProperty(value = "上级经纪人")
    private Long agentId = 0L;

    @ApiModelProperty(value = "经纪人等级：0不是经纪人 1一级经纪人 2二级经纪人")
    private Integer agentLevel = 0;
}
